home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
- INDEX(QUEL) 2/21/79 INDEX(QUEL)
-
-
-
- NAME
- index - create a secondary index on an existing relation.
-
- SYNOPSIS
- _i_n_d_e_x _o_n relname _i_s indexname (domain_1 { ,domain_2})
-
- DESCRIPTION
- _I_n_d_e_x is used to create secondary indices on existing rela-
- tions in order to make retrieval and update with secondary
- keys more efficient. The secondary key is constructed from
- relname domains 1, 2,...,6 in the order given. Only the
- owner of a relation is allowed to create secondary indices
- on that relation.
-
- In order to maintain the integrity of the index, users will
- NOT be allowed to directly update secondary indices. Howev-
- er, whenever a primary relation is changed, its secondary
- indices will be automatically updated by the system. Secon-
- dary indices may be modified to further increase the access
- efficiency of the primary relation. When an index is first
- created, it is automatically modified to an isam storage
- structure on all its domains. If this structure is undesir-
- able, the user may override the default isam structure by
- using the -_n switch (see ingres(unix)), or by entering a
- _m_o_d_i_f_y command directly.
-
- If a _m_o_d_i_f_y or _d_e_s_t_r_o_y command is used on _r_e_l_n_a_m_e, all
- secondary indices on _r_e_l_n_a_m_e are destroyed.
-
- Secondary indices on other indices, or on system relations
- are forbidden.
-
- EXAMPLE
- /* Create a secondary index called ``x'' on relation ``emp'' */
- index on emp is x(mgr,sal)
-
- SEE ALSO
- copy(quel), destroy(quel), modify(quel)
-
- BUGS
- At most 6 domains may appear in the key.
-
- The _c_o_p_y command cannot be used to copy into a relation
- which has secondary indices.
-
- The default structure isam is a poor choice for an index un-
- less the range of retrieval is small.
-
-
-